# 只编译import_example.go
go build -buildmode=c-archive -o libaddnumbers.a import_example.go
# gcc -o myappfun myappfun.c -L. -laddnumbers
gcc -c -o myappfun.o myappfun.c -L. -laddnumbers
ar rcs libmyappfun.a myappfun.o

go build -o main.exe main.go